package com.bnyy.message.bean.chat.message_data;

import com.bnyy.message.enums.MessageType;
import com.google.gson.annotations.SerializedName;

import org.xutils.db.annotation.Column;
import org.xutils.db.annotation.Table;

/**
 * Author : 关炳鹏
 * Description :
 * Date : 2023/2/19
 **/
@Table(name = "message_article")
public class ArticleMessage extends MessageData {


    interface ColumnName {
        String ID = "id";
        String TITLE = "title";
        String COVER_IMAGE = "cover_image";
        String TYPE = "type";
        String AUTHOR_NAME = "author_name";
        String AUTHOR_IMAGE = "author_image";
        String SHARE_ID = "share_id";
    }

    @Column(name = ColumnName.ID)
    private int id;
    @Column(name = ColumnName.TITLE)
    @SerializedName("article_title")
    private String title;
    @Column(name = ColumnName.COVER_IMAGE)
    @SerializedName("article_image")
    private String coverImage;
    @Column(name = ColumnName.TYPE)
    private int type;
    @Column(name = ColumnName.AUTHOR_NAME)
    @SerializedName("username")
    private String authorName;
    @Column(name = ColumnName.AUTHOR_IMAGE)
    @SerializedName("user_img")
    private String authorImage;
    @Column(name = ColumnName.SHARE_ID)
    @SerializedName("share_id")
    private int shareId;

    public int getShareId() {
        return shareId;
    }

    public void setShareId(int shareId) {
        this.shareId = shareId;
    }

    public String getAuthorName() {
        return authorName;
    }

    public void setAuthorName(String authorName) {
        this.authorName = authorName;
    }

    public String getAuthorImage() {
        return authorImage;
    }

    public void setAuthorImage(String authorImage) {
        this.authorImage = authorImage;
    }

    public ArticleMessage() {
    }

    public ArticleMessage(String msgId) {
        super(msgId);
    }

    @Override
    public MessageType getMessageType() {
        return MessageType.ARTICLE;
    }

    public int getId() {
        return id;
    }

    public void setId(int id) {
        this.id = id;
    }

    public String getTitle() {
        return title;
    }

    public void setTitle(String title) {
        this.title = title;
    }

    public String getCoverImage() {
        return coverImage;
    }

    public void setCoverImage(String coverImage) {
        this.coverImage = coverImage;
    }

    public int getType() {
        return type;
    }

    public void setType(int type) {
        this.type = type;
    }
}
